package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum RideCancellationViolate {
    none(0, "无责"),
    frequency(1, "超过取消次数"),
    time(2, "超时取消"),
    reached(3, "到达"),
    outarea(4, "在圈外"),
    neverinarea(5, "从未进圈"),
    waitingtooshort(6, "等待时间过短"),
    appointcustomercancel(7, "预约单乘客取消"),
    appointdrivercancel(8, "预约单司机取消"),
    appointCustomerLate(9, "预约单乘客迟到"),
    appointDriverLate(10, "预约单司机迟到");

    @EnumValue
    private final int code;
    private final String desc;

    RideCancellationViolate(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
